package com.lrs.java.j2se_self._example.countWords;

public class WordsCountApp {
	public static void main(String[] args) {
		//WordsCount wc = new WordsCount("张磊");
		//WordsCount wc = new FileWordsCount("D:/share/test.txt");
		WordsCount wc = new DBWordsCount("select * from dep");
		
/*
 * 赵老师，下面这个语句我感到特别别扭，本来属于WordsCount的count方法仍然需传一个WordsCount对象作参数,感到很别扭
 * 要怎样设计才会合理一点
 */
		wc.count(wc);
		wc.display();
	}
}
